package my.exception;

public class ChannelException extends RuntimeException {


    private static final long serialVersionUID = 2908618315971075004L;

    /**
     * Creates a new exception.
     */
    public ChannelException() {
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(String message) {
        super(message);
    }

    /**
     * Creates a new exception.
     */
    public ChannelException(Throwable cause) {
        super(cause);
    }

    protected ChannelException(String message, Throwable cause, boolean shared) {
        super(message+"aaaaa=====", cause, false, true);
        assert shared;
    }

    static ChannelException newStatic(String message, Throwable cause) {
        return new ChannelException(message, cause, true);
    }
}
